package com.ych.spring.factory;

import com.ych.spring.pojo.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author yangchenghao
 */
public class UserFactory implements FactoryBean<User> {

    @Override
    public User getObject() throws Exception {
        return new User(1,"ych","123456",22);
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
